<template>
	<view>
		<!-- 热门分类 -->
		<view class="hotCategories">
			<text>热门分类</text>
			<view @click="openMore" hover-class="animation_jello_5">更多<text class="iconfont icon-jinru"></text></view>
		</view>

		<!-- 更多内容 -->
		<view class="moreContent">
			<view hover-class="animation_jello_5" v-for="(item,index) in hotCate">{{item.name}}</view>
		</view>
	</view>
</template>

<script>
	export default {
		props: {
			hotCate: {
				type: Array,
				default: []
			}
		},
		methods: {
			openMore() {
				uni.navigateTo({
					// 注意此时的路径问题
					url: "../../topicnav/topicnav",
				});
			},
			openDetail() {
				console.log(`话题分类页面了`)
			},
		}
	}
</script>

<style lang="scss">
	// 热门分类
	.hotCategories {
		width: 100%;
		padding: 20rpx 15rpx 0 20rpx;
		@include flexBetweenCenter;
	}

	// 更多内容
	.moreContent {
		width: 100%;
		@include flexBetweenCenter;
		margin: 25rpx 0;
		padding: 0 20rpx;
		position: relative;

		>view {
			padding: 6rpx 15rpx;
			border: 2rpx solid #EAEAEC;
			background-color: #FCFBFF;
			border-radius: 8rpx;
		}

		// 下边线
		::before {
			@include bottomLine();
		}
	}
</style>
